<html><head></head><body>


<script type="text/javascript">

var width=0;
var height=0;
setWidthHeight();

if (height < 500) height=500;
if (width < 800) width=800;


function geogebra_applet(width,height,filename,framePossible,enableRightClick,enableShiftDragZoom,showResetIcon,showMenuBar,showToolBar,showToolBarHelp,showAlgebraInput,enableLabelDrags,showSpreadsheet,showAlgebraView) {
 
ret = '<applet name="ggbApplet" code="geogebra.GeoGebraApplet" archive="http://www.geogebra.org/webstart/dev/unpacked/geogebra.jar" height="'+height+'" width="'+width+'">';
//ret = '<applet name="ggbApplet" code="geogebra.GeoGebraApplet" archive="http://demo.webwork.rochester.edu/webwork2_files/applets/geogebra_stable/geogebra.jar" 
//height="'+height+'" width="'+width+'">';

  if (filename != "") ret+='<param name="filename" value="'+filename+'">';
  ret+='<param name="framePossible" value="'+framePossible+'">';
  ret+='<param name="enableRightClick" value="'+enableRightClick+'">';
  ret+='<param name="enableShiftDragZoom" value="'+enableShiftDragZoom+'">';
  ret+='<param name="enableLabelDrags" value="'+enableLabelDrags+'">';
  ret+='<param name="showSpreadsheet" value="'+showSpreadsheet+'">';
  ret+='<param name="showAlgebraView" value="'+showAlgebraView+'">';
  ret+='<param name="showResetIcon" value="'+showResetIcon+'">';
  ret+='<param name="showMenuBar" value="'+showMenuBar+'">';
  ret+='<param name="showToolBar" value="'+showToolBar+'">';
  ret+='<param name="showToolBarHelp" value="'+showToolBarHelp+'">';
  ret+='<param name="showAlgebraInput" value="'+showAlgebraInput+'">';
  ret+='Sorry, the GeoGebra Applet could not be started. Please make sure that Java 1.4.2 (or later) is installed and activated.';
  ret+='(<a href="http://java.sun.com/getjava">click here to install Java now</a>)';
  ret+='</applet>';
  return ret;
}

function setWidthHeight() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
  width=myWidth;
  height=myHeight;
}



var applet1=document.getElementById('applet1');

applet1.innerHTML=geogebra_applet(0.95*width,height*0.95,"",true,true,true,true,true,true,true,true,true,true,true,true);

</script>


</body></html>
